package com.it.achensen;

import java.util.Scanner;

public class Test {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入学生信息");
        String s = scanner.nextLine();
        s.split(",");

        String[] sArr = s.split(",");

       // System.out.println(sArr[0]);
       // System.out.println(sArr[1]);

        Student student1 = new Student(sArr[0],sArr[1]);

       // Student student = new Student();
        System.out.println(student1.getAge());
        System.out.println(student1.getName());
    }
}
